//
//  LLNavigationController.m
//  Weibo
//
//  Created by 李灵斌 on 15-1-28.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import "LLNavigationController.h"

@interface LLNavigationController ()

@end

@implementation LLNavigationController

// 第一次使用这个类的时候调用
+ (void)initialize{
    
    UIBarButtonItem *item = [UIBarButtonItem appearance];
    NSMutableDictionary *attrNormal = [NSMutableDictionary dictionary];
    attrNormal[NSForegroundColorAttributeName] = [UIColor orangeColor];
    attrNormal[NSFontAttributeName] = [UIFont systemFontOfSize:15];
    
    [item setTitleTextAttributes:attrNormal forState:UIControlStateNormal];
    
    NSMutableDictionary *attrDis = [NSMutableDictionary dictionary];
    attrDis[NSForegroundColorAttributeName] = [UIColor grayColor];
    attrDis[NSFontAttributeName] = [UIFont systemFontOfSize:15];
    [item setTitleTextAttributes:attrDis forState:UIControlStateDisabled];
//    NSDictionary *attrHig = @{NSForegroundColorAttributeName : [UIColor lightGrayColor]};
//    [item setTitleTextAttributes:attrHig forState:UIControlStateHighlighted];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
